@import "./topvar";
.content{
    width: 1190px;
    margin: 0 auto;
}
.top-active {
    background-color: $box-background;
    border-bottom: 1px solid #eee;
    .top-wrapper {
      background-color: $box-background;
      .top-left {
        div {
          float: left;
          width: 85px;
          height: 35px;
          font-size: 12px;
          position: relative;
          text-align: center;
          line-height: 35px;
          em {
            color: $top-color;
          }
  
          b {
            transition: all 0.2s;
            transform: rotate(0deg);
            display: inline-block;
            width: 20px;
            height: 20px;
            position: relative;
            top: 6px;
            left: -2px;
            i {
              display: inline-block;
              width: 0px;
              height: 0px;
              border: 5px solid transparent;
              border-bottom: 5px solid #000;
              position: absolute;
              left: 5px;
              top: 1px;
            }
            em {
              display: inline-block;
              width: 0px;
              height: 0px;
              border: 5px solid transparent;
              border-bottom: 5px solid white;
              position: absolute;
              left: 5px;
              top: 2px;
            }
          }
        }
        div:nth-of-type(4) {
          width: 120px;
          height: 30px;
          margin-top: 4px;
          p {
            width: 48%;
            height: 27px;
            display: inline-block;
            float: left;
            text-align: center;
            line-height: 27px;
          }
          p:nth-of-type(1) {
            background-color: rgb(255, 102, 0);
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
            border: 1px solid #ccc;
            border-right: none;
            color: white;
          }
          p:nth-of-type(2) {
            background-color: white;
            border: 1px solid #ccc;
            border-left: none;
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
          }
        }
        div:nth-of-type(5) {
          padding-left: 5px;
          box-sizing: border-box;
          em {
            float: left;
            display: inline-block;
            margin-top: 8px;
            width: 20px;
            height: 20px;
            background: url(../img/tubiao.png) no-repeat -383px -182px;
          }
          i {
            float: left;
          }
          b {
            float: left;
            display: block;
            width: 0;
            height: 0;
            border: 5px solid transparent;
            border-top: 5px solid #000;
            margin-top: 9px;
            margin-left: 6px;
          }
          &:hover {
            color: $hover-color;
          }
        }
        div:not(:nth-of-type(5)):hover {
          background-color: $box_back2;
          b {
            transform: rotate(180deg);
          }
        }
        div:nth-of-type(1) {
          -webkit-box-sizing: border-box;
          div {
            width: 83px;
            background-color: white;
            height: 4px;
            display: none;
          }
          ul {
            margin-left: -1px;
            width: 85px;
            background-color: white;
            height: 0;
            overflow: hidden;
            transition: all 0.5s;
            position: absolute;
            margin-top: 2px;
            z-index: 10000;
            width: 400px;
            border: none;
          }
          &:hover {
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
            div {
              display: block;
            }
            ul {
              height: 150px;
              border: 1px solid #ccc;
              border-top: none;
            }
          }
        }
        div:nth-of-type(2) {
          -webkit-box-sizing: border-box;
          div {
            width: 83px;
            background-color: white;
            height: 4px;
            display: none;
          }
          ul {
            margin-left: -1px;
            width: 85px;
            background-color: white;
            height: 0;
            overflow: hidden;
            transition: all 0.5s;
            position: absolute;
            margin-top: 2px;
            z-index: 10000;
            width: 400px;
            border: none;
          }
          &:hover {
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
            div {
              display: block;
            }
            ul {
              height: 150px;
              border: 1px solid #ccc;
              border-top: none;
            }
          }
        }
        div:nth-of-type(3) {
          -webkit-box-sizing: border-box;
          div {
            width: 83px;
            background-color: white;
            height: 4px;
            display: none;
          }
          ul {
            margin-left: -1px;
            width: 85px;
            background-color: white;
            height: 0;
            overflow: hidden;
            transition: all 0.5s;
            position: absolute;
            margin-top: 2px;
            z-index: 10000;
            width: 400px;
            border: none;
          }
          &:hover {
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
            div {
              display: block;
            }
            ul {
              height: 150px;
              border: 1px solid #ccc;
              border-top: none;
            }
          }
        }
      }
    }
  }
  
  .top-right {
    float: right;
    width: 650px;
    height: 35px;
    // background-color: blue;
    div {
      float: right;
      height: 35px;
      font-size: 12px;
      position: relative;
      text-align: center;
      line-height: 35px;
      margin-left: 15px;
      i {
        display: inline-block;
        vertical-align: middle;
        height: 30px;
        width: 30px;
        background: url(../img/sidebaricon.png) no-repeat 0px -165px;
      }
      em {
        height: 30px;
        color: $top-color;
      }
      b {
        height: 30px;
        transition: all 0.2s;
        transform: rotate(0deg);
        display: inline-block;
        width: 20px;
        height: 20px;
        position: relative;
        top: 6px;
        left: -2px;
        i {
          display: inline-block;
          width: 0px;
          height: 0px;
          border: 5px solid transparent;
          border-bottom: 5px solid #000;
          position: absolute;
          left: 5px;
          top: 1px;
        }
        em {
          display: inline-block;
          width: 0px;
          height: 0px;
          border: 5px solid transparent;
          border-bottom: 5px solid white;
          position: absolute;
          left: 5px;
          top: 2px;
        }
      }
    }
    div:hover {
      em {
        color: $hover-color;
      }
      b {
        transform: rotate(180deg);
      }
    }
  }
  
  .seek-content {
    height: 100px;
    div {
      float: left;
    }
    > div:nth-child(1) {
      width: 190px;
      height: 90px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    > div:nth-child(2) {
      width: 160px;
      height: 100px;
    }
    > div:nth-child(3) {
        margin-left: 100px;
      > div:nth-of-type(1) {
        margin-top: 20px;
        border: 3px solid $hover-color;
        width: 420px;
        height: 40px;
        border-top-left-radius: 15px;
        border-bottom-left-radius: 15px;
        border-right: none;
        line-height: 40px;
        i {
          margin-left: 10px;
          font-size: 24px;
          display: inline-block;
          width: 20px;
          height: 20px;
          color: $top_color;
          opacity: 0.6;
        }
        input {
          color: rgb(204, 204, 204);
          width: 380px;
          vertical-align: top;
          height: 100%;
          border: none;
          font-size: 18px;
        }
      }
      > input {
        background-color: $hover-color;
        font-size: 18px;
        color: white;
        font-weight: 700;
        width: 120px;
        height: 40px;
        margin-top: 20px;
        border: 3px solid $hover-color;
        border-left: none;
        border-bottom-right-radius: 20px;
        border-top-right-radius: 20px;
      }
      > div:nth-of-type(2) {
        float: none;
        ul {
          li {
            margin-top: 5px;
            padding: 0 10px 0 10px;
            font-size: 12px;
            color: #999;
            float: left;
            border-right: 1px solid #ddd;
            line-height: 1;
            &:hover {
              color: $hover-color;
            }
          }
          li:last-child {
            border: none;
          }
        }
      }
    }
  }

  footer{
    margin-top: 20px;
    border-top: 1px solid #e7e7e7;
    background-color: #f5f5f5;
    
  }
  .footer-img{
    overflow: hidden;
    >ul:nth-of-type(1){
      margin: 20px 0 30px 0;
      >li{
        width: 230px;
        height: 52px;
        float: left;
        margin-right: 10px;
        >img{
          width: 48px;
          float: left;
        }
        >p{
          line-height: 24px;
          text-indent: 10px;
        }
        >p:nth-of-type(1){
          font-size: 14px;
          font-weight: 700;
        }
        >p:nth-of-type(2){
          font-size: 12px;
          color: #545454;
        }
      }
      >li:nth-of-type(5){
        margin-right: 0;
      }
    }
    >ul:nth-of-type(2){
      >li{
        float: left;
        width: 210px;
        height: 160px;
        >p{
          height: 22px;
          font-size: 12px;
          color: #545454;
          line-height: 22px;
        }
        >p:nth-of-type(1){
          font-size: 14px;
          font-weight: 700;
          height: 35px;
          line-height: 35px;
        }
        >p:nth-of-type(n+2){
          &:hover{
            color: $hover-color;
          }
        }
      }
      >li:last-child{
        width: 90px;
        >p:nth-of-type(2){
          line-height: 1.4;
        }
      }
    }
  }
  
  
  // 底部信息
  .botton{
    padding-top: 10px;
    >p{
      height: 25px;
      line-height: 25px;
      text-align: center;
      font-size: 12px;
      color: #666;
    }
  }


  .starter-template {
    padding: 40px 15px;
    text-align: center;
    height: 40px;
  }
  
  .userinfo {
    float: right;
    color: #9d9d9d;
    line-height: 50px;
  }
  
  
  .cart-container {
    border: 1px solid #f1f1f1;
    background: #fff;
    width: 990px;
    margin: 0 auto;
    margin-bottom: 20px;
  }
  
  .goods {
    position: relative;
    border-top: 1px solid #c5c5c5;
    line-height: 20px;
    background: #fff;
    clear: both;
  }
  .goods::after {
    content: "";
    display: block;
    clear: both;
    overflow: hidden;
  }
  
  .p-goods {
    width: 300px;
    float: left;
    padding: 15px 0 10px;
  }
  .p-goods .p-img {
    position: relative;
    float: left;
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    margin-right: 30px;
    background: #fff;
    padding: 0;
    text-align: center;
    overflow: visible;
  }
  .p-goods .p-img img {
    width: 100%;
    height: 100%;
  }
  .p-goods .p-item {
    height: 40px;
    line-height: 20px;
    overflow: hidden;
    font-family: verdana, Microsoft YaHei, SimSun, -apple-system, BlinkMacSystemFont, PingFang SC;
  }
  
  .p-price, .p-sum {
    position: relative;
    width: 150px;
    padding-right: 40px;
    text-align: right;
    outline: none;
    float: left;
    padding: 15px 0 10px;
    color: #f10;
  }
  
  .p-quantity {
    width: 84px;
    float: left;
    padding: 15px 0 10px;
    margin-left: 80px;
  }
  .p-quantity .cartnum {
    width: 80px;
    border: 0;
    overflow: hidden;
  }
  .p-quantity .cartnum button {
    position: static;
    float: left;
    outline: 0;
    text-align: center;
    box-sizing: border-box;
    color: #232326;
    border: 1px solid #cbcbcb;
    padding: 0;
    border-width: 1px;
    background: #f1f1f1;
    width: 17px;
    height: 20px;
    line-height: 16px;
    vertical-align: middle;
  }
  .p-quantity .cartnum input {
    border-width: 1px 0;
    width: 46px;
    position: static;
    float: left;
    outline: 0;
    text-align: center;
    box-sizing: border-box;
    height: 20px;
    color: #232326;
    border: 1px solid #cbcbcb;
    background: #fff;
    line-height: 18px;
    vertical-align: middle;
    padding: 0;
  }
  
  .p-sum {
    color: #333;
  }
  
  .p-options {
    margin-left: 80px;
    width: 75px;
    float: left;
    padding: 15px 0 10px;
  }
  .p-options a {
    color: #666;
    display: block;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0);
  }


.cart-goods-news{
  width: 988px;
  margin: 0 auto;
  // background-color: forestgreen;
  border: 1px solid #ddd;
  border-top: 3px solid #ddd;
  margin-bottom: 10px;
  >ul{
    margin: 0;
    >li{
      height: 30px;
      float: left;
      line-height: 30px;
    }
    >li:nth-of-type(1){
      margin-left: 14px;
      >input{
        margin-right: 10px;
      }
    }
    >li:nth-of-type(2){
      margin-left: 88px;
    }
    >li:nth-of-type(3){
      margin-left: 232px;
    }
    >li:nth-of-type(4){
      margin-left: 86px;
    }
    >li:nth-of-type(5){
      margin-left: 134px;
    }
    >li:nth-of-type(6){
      margin-left: 55px;
    }
  }
}

.cart-goods-close{
  width: 986px;
  margin: 0 auto;
  height: 59px;
  border: 1px solid #ddd;
  >div:nth-of-type(1){
    float: left;
    >span{
      line-height: 59px;
      margin-left: 10px;
      font-size: 12px;
      color: #333;
      >input{
        margin-right: 5px;
        position: relative;
        top: 1px;
      }
    }
  }
  >ul{
    width: 420px;
    float: right;
    margin: 0;
    >li{
      float: left;
      height: 59px;
      line-height: 58px;
      font-size: 12px;
      color: #333;
      box-sizing: border-box;
    }
    >li:nth-of-type(1){
      margin-right: 15px;
      >span{
        color: $hover-color;
        font-weight: 700;
        margin-left: 3px;
      }
    }
    >li:nth-of-type(2){
      height: 38px;
      width: 1px;
      background-color: #ddd;
      line-height: 1;
      margin-top: 10px;
      margin-right: 15px;
    }
    >li:nth-of-type(3){
      >span:nth-of-type(1){
        color: #ff6000;
        vertical-align: top;
      }
      >span:nth-of-type(2){
        color: #ff6000;
        font-size: 24px;
        vertical-align: top;
      }
    }
    >li:nth-of-type(4){
      float: right;
      >button{
        width: 120px;
        border: none;
        border-radius: 0;
        background-color: #bbb;
        color: white;
        font-size: 24px;
        font-weight: 700;
      }

    }
  }
}


.options{
  margin-left: 15px;
  margin-right: 15px;
  float: left;
  margin-top: 43px;
}


.alert2{
  position: fixed;
  width: 100%;
  text-align: center;
  display: none;
  height: 50px;
  top: 0;
  left: 0;
  z-index: 10000;
  line-height: 50px;
}